#################################
#### Event by Lambert Simnel ####
#################################

#Creation of the Dutch Republic#
event = {

	id = 28002
	trigger = {
			owned = {
					province = 337
					data = -1
				}
			owned = {
					province = 338
					data = -1
				}
			owned = {
					province = 339
					data = -1
				}
			owned = {
					province = 340
					data = -1
				}
			owned = {
					province = 378
					data = -1
				}
			owned = {
					province = 380
					data = -1
				}
			NOT = {
				exists = HOL
				}
		}
	random = no
	country = GEL
	name = "EVENTNAME28000"
	desc = "EVENTHIST28002"
	style = 2

	date = { day = 1 month = january year = 1559 }
	offset = 3600
	deathdate = { day = 1 month = january year = 1648 }

	action_a ={
		name = "ACTIONNAME28002A"
		command = { type = vp value = 200 }
		command = { type = stability value = -2 }
		command = { type = revoltrisk   which = 48 value = 8 } 
		command = { type = domestic which = CENTRALIZATION value = 3 }
		command = { type = domestic which = ARISTOCRACY value = 1 }
		command = { type = domestic which = SERFDOM value = 1 }
		command = { type = domestic which = INNOVATIVE value = -1 }
		command = { type = gainbuilding   which = -1 value = bailiff } 
		command = { type = gainbuilding   which = -1 value = bailiff } 
		command = { type = gainbuilding   which = -1 value = bailiff }  
		command = { type = gainbuilding   which = -1 value = bailiff } 
		command = { type = gainbuilding   which = -1 value = courthouse }  
		command = { type = gainbuilding   which = -1 value = courthouse }
	}

	action_b ={
		name = "ACTIONNAME28002B"
		command = { type = vp value = -200 }
		command = { type = inflation value = 10 }
		command = { type = stability value = -1 }
		command = { type = country which = HOL }
		command = { type = religion   which = reformed } 
		command = { type = sleepevent   which = 3900 } 
		command = { type = domestic which = CENTRALIZATION value = -5 }
		command = { type = domestic which = ARISTOCRACY value = -3 }
		command = { type = domestic which = SERFDOM value = -2 }
		command = { type = domestic which = MERCANTILISM value = -2 }
		command = { type = domestic which = INNOVATIVE value = 2 }
		command = { type = domestic which = QUALITY value = -3 }
		command = { type = addcore which = 337 }
		command = { type = addcore which = 338 }
		command = { type = addcore which = 339 }
		command = { type = addcore which = 340 }
		command = { type = addcore which = 378 }
		command = { type = addcore which = 380 }
	}
}

#Gelre events by Twoflower

#Death of the last Duke of Jlich-Gelre#
event = {
        id = 75000
        trigger = { exists = KLE }
        random = no
        country = GEL
        name = "EVENTNAME75000"
        desc = "EVENTHIST75000"
        style = 1
        date = { day = 1 month = january year = 1423 }
        offset = 100
        deathdate = { day = 1 month = january year = 1424 }

        action_a ={
                name = "ACTIONNAME75000A"
                command = { type = breakvassal  which = KLE }
                command = { type = breakdynastic  which = KLE }
                command = { type = add_countryculture   which = dutch } 
                command = { type = remove_countryculture   which = german }
                command = { type = stability   value = -2 }
                command = { type = relation   which = KLE value = -150 }
                command = { type = domestic which = aristocracy value = 2 }
                command = { type = domestic which = centralization value = -2 }
		}

        action_b ={
                name = "ACTIONNAME75000B"
                command = { type = trigger which = 75001 }
		}
}

#Civil war         
  
event = {
        id = 75002
        random = no
        country = GEL
        name = "EVENTNAME75002"
        desc = "EVENTHIST75002"
        date = { day = 1 month = january year = 1459 }
        offset = 300
        deathdate = { day = 1 month = january year = 1460 }
        style = 1

        action_a ={
                  name = "ACTIONNAME75002A"
                  command = { type = stability value = -4 }
                  command = { type = sleepmonarch which = 04411 } #Duke Arnold
                  command = { type = wakemonarch which = 04412 }  # Adolf
                  command = { type = wakemonarch which = 04413 }  # Duke Arnold restored
                  command = { type = relation which = KLE value = -50 }
                  }
        action_b ={ 
                  name = "ACTIONNAME75002B"
                  command = { type = stability value = -5 }
                  command = { type = revoltrisk   which = 120 value = 10 } 
                  command = { type = sleepevent which = 75003 } #sale of Gelre
                  command = { type = revolt   which = -2 } 
                  }
}

#Sale of Gelre to Burgundy

event = {
        id = 75003
        trigger = { event = 75002 }
        random = no 
        country = GEL
        name = "EVENTNAME75003"
        desc = "EVENTHIST75003"
        date = { day = 7 month = december year = 1472 }
  
        action_a ={ 
                  name = "ACTIONNAME75003A"
                  command = { type = trigger which = 75004 } 
                  command = { type = stability value = -3 }
                  command = { type = revoltrisk   which = 60 value = 7 } 
                  }
        action_b ={ 
                  name = "ACTIONNAME75003B"
                  command = { type = stability value = -3 }
                  command = { type = revoltrisk   which = 60 value = 7 } 
                  command = { type = relation which = BUR value = -100 }
                  }
}

#Geldrian succession crisis sequence

event = {
        id = 75005
        trigger = { exists = KLE 
                    exists = HAB 
                    event = 3178 }
        random = no 
        country = GEL
        name = "EVENTNAME75005"
        desc = "EVENTHIST75005"
        style = 2
        date = { day = 1 month = january year = 1538 }
        offset = 200
        deathdate = { day = 1 month = january year = 1539 }

        action_a ={
                  name = "ACTIONNAME75005A"
                  command = { type = trigger which = 75006 }
                  }
        action_b ={ 
                  name = "ACTIONNAME75005B"
                  command = { type = trigger which = 75008 }
                  }
        action_c ={
                  name = "ACTIONNAME75005C"
                  command = { type = stability value = -3 }
                  command = { type = relation which = KLE value = -50 }
                  command = { type = trigger which = 75009 }  
                  }
}


#Charles the Rash didn't buy Gelre and the Habsburgs don't have a claim

event = {
        id = 75010
        trigger = { exists = KLE 
                    NOT = { event = 3178
                            event = 3319 }
                  }
        random = no 
        country = GEL
        name = "EVENTNAME75005"
        desc = "EVENTHIST75010"
        style = 1
        date = { day = 1 month = january year = 1538 }
        offset = 200
        deathdate = { day = 1 month = january year = 1539 }
 
        action_a ={
                  name = "ACTIONNAME75005A"
                  command = { type = trigger which = 75011 }
                  }
               
        action_b ={
                  name = "ACTIONNAME75005C"
                  command = { type = stability value = -3 }
                  command = { type = relation which = KLE value = -50 } 
                  }
}       

#France inherited Burgundy and the claim on Gelre              

event = {
        id = 75012
        trigger = { exists = KLE 
                    exists = FRA
                    event = 3319 }
        random = no 
        country = GEL
        name = "EVENTNAME75005"
        desc = "EVENTHIST75012"
        style = 2
        date = { day = 1 month = january year = 1538 }
        offset = 200
        deathdate = { day = 1 month = january year = 1539 }

        action_a ={
                  name = "ACTIONNAME75005A"
                  command = { type = trigger which = 75013 }
                  }
        action_b ={ 
                  name = "ACTIONNAME75012B"
                  command = { type = trigger which = 75015 }
                  }
        action_c ={
                  name = "ACTIONNAME75005C"
                  command = { type = stability value = -3 }
                  command = { type = relation which = KLE value = -50 }
                  command = { type = trigger which = 75016 }  
                  }
}

#Geldrian succession crisis sequence, no Kleve

event = {
        id = 75017
        trigger = { NOT = { exists = KLE }
                    exists = HAB 
                    event = 3178 }
        random = no 
        country = GEL
        name = "EVENTNAME75005"
        desc = "EVENTHIST75017"
        style = 2
        date = { day = 1 month = january year = 1538 }
        offset = 200
        deathdate = { day = 1 month = january year = 1539 }

        action_a ={ 
                  name = "ACTIONNAME75005B"
                  command = { type = trigger which = 75008 }
                  }
        action_b ={
                  name = "ACTIONNAME75005C"
                  command = { type = stability value = -3 }
                  command = { type = trigger which = 75009 }  
                  }
}

#France inherited Burgundy and the claim on Gelre, no Kleve              

event = {
        id = 75018
        trigger = { NOT = { exists = KLE }
                    exists = FRA
                    event = 3319 }
        random = no 
        country = GEL
        name = "EVENTNAME75005"
        desc = "EVENTHIST75018"
        style = 2
        date = { day = 1 month = january year = 1538 }
        offset = 200
        deathdate = { day = 1 month = january year = 1539 }

        action_a ={ 
                  name = "ACTIONNAME75012B"
                  command = { type = trigger which = 75015 }
                  }
        action_b ={
                  name = "ACTIONNAME75005C"
                  command = { type = stability value = -3 }
                  command = { type = trigger which = 75016 }  
                  }
}

#Death of the last Duke of Jlich-Gelre#
event = {
        id = 75021
        trigger = { NOT = { exists = KLE }}
        random = no
        country = GEL
        name = "EVENTNAME75000"
        desc = "EVENTHIST75021"
        style = 1
        date = { day = 1 month = january year = 1423 }
        offset = 100
        deathdate = { day = 1 month = january year = 1424 }

        action_a ={
                name = "ACTIONNAME75000A"
                command = { type = breakvassal  which = KLE }
                command = { type = breakdynastic  which = KLE }
                command = { type = add_countryculture   which = dutch } 
                command = { type = remove_countryculture   which = german }
                command = { type = stability   value = -2 }
                command = { type = relation   which = KLE value = -150 }
                command = { type = domestic which = aristocracy value = 2 }
                command = { type = domestic which = centralization value = -2 }
                  }
}

#Gelre events by TheF, modified by Twoflower
event = { 
	id = 22023 
	random = no 
	country = GEL 
	name = "EVENTNAME22023" 
	desc = "EVENTHIST22023"
	style = 1 

	action_a = { 
		name = "ACTIONNAME3855A" 
		command = { type = inherit which = FRI } 
		command = { type = war which = HAB } 
		command = { type = relation which = HAB value = -200 } 
		command = { type = wakeleader which = 03003 } #Grote Pier 
		command = { type = wakeleader which = 03004 } #Grote Pier 
		} 

	action_b = { 
		name = "ACTIONNAME62004B" 
		command = { type = trigger which = 89023 } 
		command = { type = relation which = HAB value = 100 } 
		} 
} 
